﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_TreeView : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            Check_Login();
        }

    }



    public void Check_Login()
    {
        //判断存储在Session对象中
        if ((Session["UserName"] == null))
        {
            Response.Write("<script>alert('对不起！请先登录！');location='LoginIndex.aspx'; target='top'</script>");
            Response.End();
        }
    }
}